﻿using OSS.BIM.Business;
using OSS.BIM.Utility;
// ***********************************************************************
// Assembly         : OSS.BIM
// Author           : tian_
// Created          : 06-26-2019
//
// Last Modified By : tian_
// Last Modified On : 10-30-2019
// ***********************************************************************
// <copyright file="ShowCurUserGroupTreeNodeCmd.cs" company="">
//     Copyright ©  2017
// </copyright>
// <summary></summary>
// ***********************************************************************
using ZFGK.Addins;

namespace OSS.BIM.Commands.GroupCmds
{
    /// <summary>
    /// Class ShowCurUserGroupTreeNodeCmd.
    /// </summary>
    /// <seealso cref="ZFGK.Addins.IExtendCommand" />
    public class ShowCurUserGroupTreeNodeCmd : IExtendCommand
    {
        /// <summary>
        /// Executes the specified command data.
        /// </summary>
        /// <param name="cmdData">The command data.</param>
        /// <param name="message">The message.</param>
        /// <returns>CmdResult.</returns>
        public CmdResult Execute(ExtendCmdData cmdData, ref string message)
        {
            if (CurUserGroup.Instance.ModelGrope == null)
            {
                //MsgManager.AppendLine("当前分组为空，请设置当前分组！");
                return CmdResult.Cancel;
            }
            BmTreeListManager.ShowCurGroupTreeNode();

            return CmdResult.Succeed;
        }
    }
}
